package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "PlanOper".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2015-5-5 15:10:14
 */

public final class PlanOperHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOperHelper.id(),"PlanOper",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("OperId", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("preOperId", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("type", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)), null),new org.omg.CORBA.StructMember("subtype", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)), null),new org.omg.CORBA.StructMember("dstDn", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("exVal1", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("exVal2", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("exVal3", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("exStr1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("exStr2", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("exStr3", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOper s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOper extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/PlanOper:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOper read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOper result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOper();
		result.OperId=in.read_long();
		result.preOperId=in.read_long();
		result.type=in.read_short();
		result.subtype=in.read_short();
		result.dstDn=in.read_string();
		result.exVal1=in.read_long();
		result.exVal2=in.read_long();
		result.exVal3=in.read_long();
		result.exStr1=in.read_string();
		result.exStr2=in.read_string();
		result.exStr3=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOper s)
	{
		out.write_long(s.OperId);
		out.write_long(s.preOperId);
		out.write_short(s.type);
		out.write_short(s.subtype);
		out.write_string(s.dstDn);
		out.write_long(s.exVal1);
		out.write_long(s.exVal2);
		out.write_long(s.exVal3);
		out.write_string(s.exStr1);
		out.write_string(s.exStr2);
		out.write_string(s.exStr3);
	}
}
